import {ActionCode} from './actionCode';
import {Menu} from '../core/services/types';


export const menuNav: Menu[] = [
  /*考试菜单*/
  {
    title: '考试教育',
    icon: 'aim',
    open: false,
    selected: false,
    actionCode: ActionCode.ExamEducate,
    children: [
      {
        title: '题库管理',
        open: false,
        selected: false,
        actionCode: ActionCode.QuestionBankManagement,
        path: '/default/exam-management/question-bank',
      },
      {
        title: '试题管理',
        open: false,
        selected: false,
        actionCode: ActionCode.TestQuestionManagement,
        path: '/default/exam-management/test-question',
      },
      {
        title: '考试管理',
        open: false,
        selected: false,
        actionCode: ActionCode.ExamManagement,
        path: '/default/exam-management/exams-manage',
      },
    ]
  },
  /*在线考试*/
  {
    title: '在线考试',
    icon: 'unordered-list',
    open: false,
    selected: false,
    actionCode: ActionCode.OnlineTestManagement,
    children: [
      {
        title: '在线考试',
        open: false,
        selected: false,
        actionCode: ActionCode.OnlineTest,
        path: '/default/online-test/online-exam',
      },
      {
        title: '我的成绩',
        open: false,
        selected: false,
        actionCode: ActionCode.MyGrades,
        path: '/default/online-test/my-grades',
      }
    ]
  },
  {
    title: '内部管理',
    icon: 'appstore',
    open: false,
    selected: false,
    actionCode: ActionCode.InternalModule,
    children: [
      {
        title: '用户管理',
        open: false,
        selected: false,
        path: '/default/internal-manage/user-manage',
        actionCode: ActionCode.UserManage,
      },
      {
        title: '角色管理',
        open: false,
        selected: false,
        path: '/default/internal-manage/role-manage',
        actionCode: ActionCode.RoleManage,
      },
      {
        title: '部门管理',
        open: false,
        selected: false,
        path: '/default/internal-manage/dept-manage',
        actionCode: ActionCode.DeptManage,
      },
    ]
  }
];
